<template>
  <div class="tabContainer">
    <div v-for="(item,key) in dataList" :key="key" class="tab_line">
      <div>
        <p class="line-title">{{item.name}}</p>
        <p class="line-badge">
          <span style="background:#BDEFE0;color:#65CCAC">{{item.allNumber}}</span>
          <span style="background:#CFBAF7;color:#8B6BCE">{{item.onlineNumber}}</span>
          <span style="background:#EEB8C3;color:#D76874">{{item.abnormalNumber}}</span>
        </p>
      </div>
      <div class="line_list">
          <p v-for="(i,key) in item.pointList" :key="key">
              <span style="color:#327BDC">{{i.name}}: </span> <span style="color:#65CCAC">{{i.allNumber}}</span> 
              <span style="color:#8B6BCE">{{i.onlineNumber}}</span> 
              <span style="color:#D76874">{{i.abnormalNumber}}</span>
          </p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props:{
    dataList:{
      type:Array
    }
  },
  data() {
    return {
      
    };
  },
  components: {},
};
</script>

<style lang="scss" scoped>
.tabContainer {
  width: 100%;
  height: auto;
  border: 1px solid #f2f3fb;
  border-bottom: none;
  margin-top: 7px;
  border-radius: 3px;
  .tab_line{
      display: flex;
      justify-content: start;
      border-bottom: 1px solid #f2f3fb;
      div:first-child{
          width: 160px;
          padding: 15px 15px;
          border-right: 1px solid #f2f3fb;
      }
      div:last-child{
          width: 85%;
      }
      .line-title{
          text-align: center;
          color: #666666;
          font-size: 12px;
          margin-bottom: 3px;
      }
      .line-badge{
          display: flex;
          justify-content: center;
          span{
            display: inline-block;
            padding: 1px 7px;
            border-radius: 30px;
            font-size: 12px;
            margin:0 2px
          }
      }
  }
}
.line_list{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 25px 50px;
    cursor: pointer;
    p{
        padding: 0 20px;
        font-size: 12px;
        font-weight: 500;
        span{
            margin: 0 3px;
        }
    }
}
</style>
